import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import * as serviceWorker from './serviceWorker';
import App from "./pages/main/App";
import {HashRouter, Route, Switch} from "react-router-dom";
import Search from "./pages/search/Search";
import Bouns from "./pages/bonus/Bouns";

import './config/axios.config'

ReactDOM.render(
  <HashRouter>
    <Switch>
      <Route exact path="/" component={App}/>
      <Route path="/search" component={Search}/>
      <Route path="/bonus" component={Bouns}/>
    </Switch>
  </HashRouter>, document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: http://bit.ly/CRA-PWA
serviceWorker.unregister();
